<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>个人资料-{:C('site.sitename')}</title>
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_index.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
		<script type="text/javascript" src="__USERS__/js/birthday.js"></script>
	</head>
	<body>
		<!--顶部-->
		{include file="user/userheader" /}

		<!--User Start-->
		<div class="main">			
			{include file="user/userltnav" /}

			<!--度假线路 Start-->
			<div class="uc-rigbox2">
				<div class="uc-title"><h3>个人资料</h3></div>
				<div class="what">
					<div class="dingzhiboxbg" style="background:#FFF; border-bottom:0;">
						<div class="dingzhibox">
							<div class="dingzhi">
								<ul class="dz_top" style="float:left;">
									<form action="{:U('/user/info','','',false,true)}" method="post" id="modiform">

										<li>
											<em>昵称</em>
                                                                                        <input type="text" name="username" class="dz_input" maxlength="10"  value="{$userinfo.username|default='新会员'}" /><span style='margin-left:120px;'>*修改昵称后需退出重新登录才能生效</span>
										</li>

										<li>
											<em>姓名</em>
											<input type="text" name="realname" class="dz_input" maxlength="10"  value="{$userinfo.realname|default=''}" />
										</li>
										<li>
											<em>性别</em>
											<select name="sex" class="dz_select">
												<option value="">请选择</option>
												<option value ="1" {eq name="userinfo.sex" value="1"}selected='selected'{/eq}>男</option>
												<option value ="0" {eq name="userinfo.sex" value="0"}selected='selected'{/eq}>女</option>
											</select>
										</li>
										<li>
											<em>生日</em>
											<select name="year" class="sel_year" rel="{$userinfo.year|default='1980'}"></select>年
											<select name="month" class="sel_month" rel="{$userinfo.month|default='08'}"></select>月
											<select name='day' class="sel_day" rel="{$userinfo.day|default='08'}"></select>日
										</li>
										<li>
											<button class="btn" type="submit">保存</button>
										</li>
									</form>
								</ul>
								<div class="clear"></div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class='clear'></div>
		</div>
		<!--footer-->
		{include file="user/userfooter" /}
		<script>
			$(function () {
				$.ms_DatePicker({
					YearSelector: ".sel_year",
					MonthSelector: ".sel_month",
					DaySelector: ".sel_day"
				});
				$.ms_DatePicker();
				//表单部分
				$("form#modiform").submit(function () {
					var self = $(this);
					$.post(self.attr("action"), self.serialize(), success);
					return false;

					function success(data) {
						if (data.status > 0) {
							$(".bot_con_bg").removeClass("errors").addClass("succes");
							$(".zhedang").fadeIn(250);
							$(".duifou").fadeIn(300);
							$(".bot_con_txt").html(data.info);
						}
						if (data.status == 0) {
							$(".bot_con_bg").removeClass("succes").addClass("errors");
							$(".zhedang").fadeIn(350);
							$(".duifou").fadeIn(400);
							$(".bot_con_txt").html("对不起，" + "<em>" + data.info + "</em>" + "请修改后重新提交！");
						}
					}
				});
			});
		</script>

		<div class="duifou">
			<div class="top_tit">
				<h5>提示信息</h5>
				<a id="cls" href="javascript:;">×</a>
			</div>
			<div class="bot_con">
				<div class="bot_con_bg"></div>
				<div class="bot_con_txt"></div>
			</div>
		</div>


		<div class="zhedang"></div>
		<script type="text/javascript" src="__USERS__/js/AllScript.js"></script>
	</body>
</html>